package org.xilin

class Payment {
  Family    family
  Semester  semester
  String    paymentType
  Integer   amount
  User      updatedBy
  Date      dateCreated, lastUpdated

  static String[] paymentTypes = ["CHECK", "CASH", "CREDIT"]

  static constraints = {
    paymentType (nullable:false, inList:["CHECK", "CASH", "CREDIT"] )
    amount      (blank:false)
  }
}
